package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="ZFZB_ZFXM"
 *     
*/
public class ZfzbZfxm implements Serializable {

    /** identifier field */
    private String xmbh;

    /** persistent field */
    private String nd;

    /** nullable persistent field */
    private String zfxmbm;

    /** nullable persistent field */
    private String zfxmmc;

    /** persistent field */
    private String jjxmBz;

    /** nullable persistent field */
    private String jjxmbm;

    /** persistent field */
    private String qjxmBz;

    /** nullable persistent field */
    private String yszbbh;

    /** persistent field */
    private String sjzgdwbh;

    /** nullable persistent field */
    private String dyjbr;

    /** nullable persistent field */
    private String dyjbrDh;

    /** nullable persistent field */
    private String dejbr;

    /** nullable persistent field */
    private String dejbrDh;

    /** persistent field */
    private BigDecimal sqje;

    /** persistent field */
    private BigDecimal zfje;

    /** nullable persistent field */
    private String nrzjzfrq;

    /** persistent field */
    private String dwbh;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt2;
    /** nullable persistent field */
    private String ysxmBm;
    /** nullable persistent field */
    private String ysxmMc;
    
    private String ysxmLbm;
    /** nullable persistent field */
    private String ysxmLmc;
    
    /** nullable persistent field */
    private String xmlx;
    
    /** nullable persistent field */
    private BigDecimal zjbl;
    
    /** nullable persistent field */
    private BigDecimal zjje;
    


    public ZfzbZfxm(String xmbh, String nd, String zfxmbm, String zfxmmc,
			String jjxmBz, String jjxmbm, String qjxmBz, String yszbbh,
			String sjzgdwbh, String dyjbr, String dyjbrDh, String dejbr,
			String dejbrDh, BigDecimal sqje, BigDecimal zfje, String nrzjzfrq,
			String dwbh, String zt1, String zt2, String ysxmBm, String ysxmMc,
			String ysxmLbm, String ysxmLmc, String xmlx, BigDecimal zjbl,
			BigDecimal zjje) {
		super();
		this.xmbh = xmbh;
		this.nd = nd;
		this.zfxmbm = zfxmbm;
		this.zfxmmc = zfxmmc;
		this.jjxmBz = jjxmBz;
		this.jjxmbm = jjxmbm;
		this.qjxmBz = qjxmBz;
		this.yszbbh = yszbbh;
		this.sjzgdwbh = sjzgdwbh;
		this.dyjbr = dyjbr;
		this.dyjbrDh = dyjbrDh;
		this.dejbr = dejbr;
		this.dejbrDh = dejbrDh;
		this.sqje = sqje;
		this.zfje = zfje;
		this.nrzjzfrq = nrzjzfrq;
		this.dwbh = dwbh;
		this.zt1 = zt1;
		this.zt2 = zt2;
		this.ysxmBm = ysxmBm;
		this.ysxmMc = ysxmMc;
		this.ysxmLbm = ysxmLbm;
		this.ysxmLmc = ysxmLmc;
		this.xmlx = xmlx;
		this.zjbl = zjbl;
		this.zjje = zjje;
	}

	/** default constructor */
    public ZfzbZfxm() {
    }

    /** minimal constructor */
    public ZfzbZfxm(String xmbh, String nd, String jjxmBz, String qjxmBz,
			String sjzgdwbh, BigDecimal sqje, BigDecimal zfje, String dwbh,
			String xmlx,BigDecimal zjbl) {
        this.xmbh = xmbh;
        this.nd = nd;
        this.jjxmBz = jjxmBz;
        this.qjxmBz = qjxmBz;
        this.sjzgdwbh = sjzgdwbh;
        this.sqje = sqje;
        this.zfje = zfje;
        this.dwbh = dwbh;
        this.xmlx = xmlx;
        this.zjbl = zjbl;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="XMBH"
     *         
     */
    public String getXmbh() {
        return this.xmbh;
    }

    public void setXmbh(String xmbh) {
        this.xmbh = xmbh;
    }

    /** 
     *            @hibernate.property
     *             column="ND"
     *             length="4"
     *             not-null="true"
     *         
     */
    public String getNd() {
        return this.nd;
    }

    public void setNd(String nd) {
        this.nd = nd;
    }

    /** 
     *            @hibernate.property
     *             column="ZFXMBM"
     *             length="50"
     *         
     */
    public String getZfxmbm() {
        return this.zfxmbm;
    }

    public void setZfxmbm(String zfxmbm) {
        this.zfxmbm = zfxmbm;
    }

    /** 
     *            @hibernate.property
     *             column="ZFXMMC"
     *             length="80"
     *         
     */
    public String getZfxmmc() {
        return this.zfxmmc;
    }

    public void setZfxmmc(String zfxmmc) {
        this.zfxmmc = zfxmmc;
    }

    /** 
     *            @hibernate.property
     *             column="JJXM_BZ"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getJjxmBz() {
        return this.jjxmBz;
    }

    public void setJjxmBz(String jjxmBz) {
        this.jjxmBz = jjxmBz;
    }

    /** 
     *            @hibernate.property
     *             column="JJXMBM"
     *             length="50"
     *         
     */
    public String getJjxmbm() {
        return this.jjxmbm;
    }

    public void setJjxmbm(String jjxmbm) {
        this.jjxmbm = jjxmbm;
    }

    /** 
     *            @hibernate.property
     *             column="QJXM_BZ"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getQjxmBz() {
        return this.qjxmBz;
    }

    public void setQjxmBz(String qjxmBz) {
        this.qjxmBz = qjxmBz;
    }

    /** 
     *            @hibernate.property
     *             column="YSZBBH"
     *             length="50"
     *         
     */
    public String getYszbbh() {
        return this.yszbbh;
    }

    public void setYszbbh(String yszbbh) {
        this.yszbbh = yszbbh;
    }

    /** 
     *            @hibernate.property
     *             column="SJZGDWBH"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getSjzgdwbh() {
        return this.sjzgdwbh;
    }

    public void setSjzgdwbh(String sjzgdwbh) {
        this.sjzgdwbh = sjzgdwbh;
    }

    /** 
     *            @hibernate.property
     *             column="DYJBR"
     *             length="30"
     *         
     */
    public String getDyjbr() {
        return this.dyjbr;
    }

    public void setDyjbr(String dyjbr) {
        this.dyjbr = dyjbr;
    }

    /** 
     *            @hibernate.property
     *             column="DYJBR_DH"
     *             length="50"
     *         
     */
    public String getDyjbrDh() {
        return this.dyjbrDh;
    }

    public void setDyjbrDh(String dyjbrDh) {
        this.dyjbrDh = dyjbrDh;
    }

    /** 
     *            @hibernate.property
     *             column="DEJBR"
     *             length="30"
     *         
     */
    public String getDejbr() {
        return this.dejbr;
    }

    public void setDejbr(String dejbr) {
        this.dejbr = dejbr;
    }

    /** 
     *            @hibernate.property
     *             column="DEJBR_DH"
     *             length="30"
     *         
     */
    public String getDejbrDh() {
        return this.dejbrDh;
    }

    public void setDejbrDh(String dejbrDh) {
        this.dejbrDh = dejbrDh;
    }

    /** 
     *            @hibernate.property
     *             column="SQJE"
     *             length="16"
     *             not-null="true"
     *         
     */
    public BigDecimal getSqje() {
        return this.sqje;
    }

    public void setSqje(BigDecimal sqje) {
        this.sqje = sqje;
    }

    /** 
     *            @hibernate.property
     *             column="ZFJE"
     *             length="16"
     *             not-null="true"
     *         
     */
    public BigDecimal getZfje() {
        return this.zfje;
    }

    public void setZfje(BigDecimal zfje) {
        this.zfje = zfje;
    }

    /** 
     *            @hibernate.property
     *             column="NRZJZFRQ"
     *             length="14"
     *         
     */
    public String getNrzjzfrq() {
        return this.nrzjzfrq;
    }

    public void setNrzjzfrq(String nrzjzfrq) {
        this.nrzjzfrq = nrzjzfrq;
    }

    /** 
     *            @hibernate.property
     *             column="DWBH"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getDwbh() {
        return this.dwbh;
    }

    public void setDwbh(String dwbh) {
        this.dwbh = dwbh;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }
    /** 
     *            @hibernate.property
     *             column="YSXM_BM"
     *             length="50"
     *         
     */
    public String getYsxmBm() {
		return ysxmBm;
	}

	public void setYsxmBm(String ysxmBm) {
		this.ysxmBm = ysxmBm;
	}

    /** 
     *            @hibernate.property
     *             column="YSXM_MC"
     *             length="50"
     *         
     */
	public String getYsxmMc() {
		return ysxmMc;
	}

	public void setYsxmMc(String ysxmMc) {
		this.ysxmMc = ysxmMc;
	}

    public String getYsxmLbm() {
		return ysxmLbm;
	}

	public void setYsxmLbm(String ysxmLbm) {
		this.ysxmLbm = ysxmLbm;
	}

	public String getYsxmLmc() {
		return ysxmLmc;
	}

	public void setYsxmLmc(String ysxmLmc) {
		this.ysxmLmc = ysxmLmc;
	}

	/** 
     *            @hibernate.property
     *             column="XMLX"
     *             length="2"
     *         
     */
    public String getXmlx() {
        return this.xmlx;
    }

    public void setXmlx(String xmlx) {
        this.xmlx = xmlx;
    }
    
    /** 
     *            @hibernate.property
     *             column="ZJBL"
     *             length="16"
     *         
     */
    public BigDecimal getZjbl() {
        return this.zjbl;
    }

    public void setZjbl(BigDecimal zjbl) {
        this.zjbl = zjbl;
    }
    
    /** 
     *            @hibernate.property
     *             column="ZJJE"
     *             length="16"
     *         
     */
	public BigDecimal getZjje() {
		return zjje;
	}

	public void setZjje(BigDecimal zjje) {
		this.zjje = zjje;
	}
	
	public String toString() {
        return new ToStringBuilder(this)
            .append("xmbh", getXmbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof ZfzbZfxm) ) return false;
        ZfzbZfxm castOther = (ZfzbZfxm) other;
        return new EqualsBuilder()
            .append(this.getXmbh(), castOther.getXmbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getXmbh())
            .toHashCode();
    }
}
